home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
276-300
/
279
/
mrprint
/
test.c
< prev
Wrap
C/C++ Source or Header
|
1995-03-14
|
437b
|
25 lines
#include <functions.h>
char outstring[256];
unsigned length;
int intValue = 1234;
long longValue = 567890L;
MyPutChar(c, buffer)
int c; char *buffer;
{
printf("buffer = %ld\n", buffer);
outstring[length++] = c;
}
main()
{
RawDoFormat("string: %s", "A String", MyPutChar, outstring);
RawDoFormat(" int: %d", &intValue, MyPutChar, outstring);
RawDoFormat(" long: %ld", &longValue, MyPutChar, outstring);
puts(outstring);
}